var exchage = function(){
    var resolve = arguments[0];
    var reject = arguments[1];
    ajax.post({
        url : 'data/test1.json',
        dataType:'json',
        success : function(result) {
            resolve(result);
        },
        error : function(error) {
            reject(error);
        }
    });
}
 
var upload = function(){
    ajax.post({
        url : 'data/test2.json',
        data:arguments[0],
        dataType:'json',
        success : function(r) {
            console.log(r);
            return r;
        },
        error : function(error) {
 
        }
    });
}
 
var promise = new Promise(ajax1).then(ajax2);

export default {
  ajax1，
  ajax2
}